import java.util.function.Consumer;

public class ConsumerTest {

    public static  void main(String[] args){
        Consumer consumer = (t)->{
            System.out.println(t+" hello world!");
        };
        consumer.accept("haha ");
        Consumer consumer2= System.out::println;
        consumer2.accept("222haha ");

    }
}
